package com.n9.qq.android.login;

import com.qq.taf.jce.JceInputStream;
import com.qq.taf.jce.JceOutputStream;
import com.qq.taf.jce.JceStruct;

/**
 * @author ice
 * @since 2019/2/19 16:32
 */
public class SvcRespRegister extends JceStruct {
    public byte bCrashFlag = 0;
    public byte bLogQQ = 0;
    public byte bNeedKik = 0;
    public byte bUpdateFlag = 0;
    public byte cReplyCode = 0;
    public int iClientPort = 0;
    public long lBid = 0L;
    public long lServerTime = 0L;
    public long lUin = 0L;
    public String strClientIP = "";
    public String strResult = "";
    public long timeStamp = 0L;

    public SvcRespRegister() {
    }

    public SvcRespRegister(long var1, long var3, byte var5, String var6, long var7, byte var9, byte var10, byte var11, long var12, byte var14, String var15, int var16) {
        this.lUin = var1;
        this.lBid = var3;
        this.cReplyCode = var5;
        this.strResult = var6;
        this.lServerTime = var7;
        this.bLogQQ = var9;
        this.bNeedKik = var10;
        this.bUpdateFlag = var11;
        this.timeStamp = var12;
        this.bCrashFlag = var14;
        this.strClientIP = var15;
        this.iClientPort = var16;
    }

    public void readFrom(JceInputStream var1) {
        this.lUin = var1.read(this.lUin, 0, true);
        this.lBid = var1.read(this.lBid, 1, true);
        this.cReplyCode = var1.read(this.cReplyCode, 2, true);
        this.strResult = var1.readString(3, true);
        this.lServerTime = var1.read(this.lServerTime, 4, false);
        this.bLogQQ = var1.read(this.bLogQQ, 5, false);
        this.bNeedKik = var1.read(this.bNeedKik, 6, false);
        this.bUpdateFlag = var1.read(this.bUpdateFlag, 7, false);
        this.timeStamp = var1.read(this.timeStamp, 8, false);
        this.bCrashFlag = var1.read(this.bCrashFlag, 9, false);
        this.strClientIP = var1.readString(10, false);
        this.iClientPort = var1.read(this.iClientPort, 11, false);
    }

    public void writeTo(JceOutputStream var1) {
        var1.write(this.lUin, 0);
        var1.write(this.lBid, 1);
        var1.write(this.cReplyCode, 2);
        var1.write(this.strResult, 3);
        var1.write(this.lServerTime, 4);
        var1.write(this.bLogQQ, 5);
        var1.write(this.bNeedKik, 6);
        var1.write(this.bUpdateFlag, 7);
        var1.write(this.timeStamp, 8);
        var1.write(this.bCrashFlag, 9);
        if (this.strClientIP != null) {
            var1.write(this.strClientIP, 10);
        }

        var1.write(this.iClientPort, 11);
    }
}
